<?php include_partial("gestionagua/menuagua") ?>
<div id="sf_admin_container" style="width: 100%;height: 100%">
    <div style = "display: table;  width:100%;">
        <div style="float:left;margin-bottom:0px;width: 450px;"><a align="left" href="<?php echo url_for('pagos/new') ?>">    
                <img  src="/images/agregar.png" width="72" height="44" border="1"/>
            </a> 
        </div>
        <h1>Listado de Pagos</h1>
        <table>
            <thead>
                <tr>
                    <th>Fecha</th>
                    <th>Forma pago</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($pagos as $pago): ?>
                    <tr>
                        
                        <td><?php echo $pago->getFechahora() ?></td>
                        <td><?php echo $pago->getFormaPago()->getNombre() ?></td>
                    </tr>
                <?php endforeach; ?>
            </tbody>
        </table>

   </div>
</div>